package com.neo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by haowei on 2019/3/19.
 */
//@RestController
//@RefreshScope //开启更新功能
//public class ConfigServerTest {
//
//    @Value("${connect_timeout}")
//    private String connect_timeout;
//    @Value("${network_timeout}")
//    private String network_timeout;
//    @Value("${charset}")
//    private String charset;
//    @Value("${tracker_server}")
//    private String tracker_server;
//
//
//    @GetMapping("/configtest")
//    public void testfastDFS(String groupName, String remoteFileName, HttpServletResponse response) {
//        System.err.println("connect_timeout===="+connect_timeout);
//        System.err.println("network_timeout===="+network_timeout);
//        System.err.println("charset===="+charset);
//        System.err.println("tracker_server===="+tracker_server);
//    }
//}
